<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>美兰数据文化馆与图书馆</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="<%=request.getContextPath()%>/huazhi/lib/layui-v2.5.5/css/layui.css" media="all">
    <link rel="stylesheet" href="<%=request.getContextPath()%>/huazhi/css/public.css" media="all">
    <link rel="shortcut icon" href="<%=request.getContextPath()%>/huazhi/images/favicon.ico"/>
</head>
<style>
    /* 重置轮播样式 */
    .layadmin-carousel {
        height: 185px !important;
        background-color: #fff;
    }

    .layadmin-carousel .layui-carousel-ind li {
        background-color: #e2e2e2;
    }

    .layadmin-carousel .layui-carousel-ind li:hover {
        background-color: #c2c2c2;
    }

    .layadmin-carousel .layui-carousel-ind li.layui-this {
        background-color: #999;
    }

    .layadmin-carousel .layui-carousel,
    .layadmin-carousel > *[carousel-item] > * {
        background-color: #fff;
    }

    .layadmin-carousel .layui-col-space10 {
        margin: 0;
    }

    .layadmin-carousel .layui-carousel-ind {
        position: absolute;
        top: -41px;
        text-align: right;
    }

    .layadmin-carousel .layui-carousel-ind ul {
        background: none;
    }

    .layadmin-backlog .layadmin-backlog-body {
        display: block;
        padding: 10px 15px;
        background-color: #f8f8f8;
        color: #999;
        border-radius: 2px;
        transition: all .3s;
        -webkit-transition: all .3s;
    }

    .layadmin-backlog-body h3 {
        padding-bottom: 10px;
        font-size: 12px;
    }

    .layadmin-backlog-body p cite {
        font-style: normal;
        font-size: 30px;
        font-weight: 300;
        color: #009688;
    }

    .layadmin-backlog-body:hover {
        background-color: #f2f2f2;
        color: #888;
    }

    .divhtml {
        line-height: 20px;
        padding: 9px 0px;
        text-align: left;
        position: relative;
        display: block;
        float: left;
        font-weight: 400;

    }

    .layui-form-label {
        width: 130px;
    }

    .layui-input-block {
        margin-left: 160px;
    }

    img{ border:0;  }

    /* 本例子css */
    .picMarquee-left{ overflow:hidden; position:relative;  border:1px solid #ccc;   }
    .picMarquee-left .hd{ overflow:hidden;  height:30px; background:#f4f4f4; padding:0 10px;  }
    .picMarquee-left .hd .prev,.picMarquee-left .hd .next{ display:block;  width:5px; height:9px; float:right; margin-right:5px; margin-top:10px;  overflow:hidden;
        cursor:pointer; background:url("<%=request.getContextPath()%>/huazhi/images/arrow.png") no-repeat;}
    .picMarquee-left .hd .next{ background-position:0 -50px;  }
    .picMarquee-left .hd .prevStop{ background-position:-60px 0; }
    .picMarquee-left .hd .nextStop{ background-position:-60px -50px; }

    .picMarquee-left .bd{ padding:10px;   }
    .picMarquee-left .bd ul{ overflow:hidden; zoom:1; }
    .picMarquee-left .bd ul li{ margin:0 8px; float:left; _display:inline; overflow:hidden; text-align:center;  }
    .picMarquee-left .bd ul li .pic{ text-align:center; }
    .picMarquee-left .bd ul li .pic img{ width:120px; height:90px; display:block; padding:2px; border:1px solid #ccc; }
    .picMarquee-left .bd ul li .pic a:hover img{ border-color:#999;  }
    .picMarquee-left .bd ul li .title{ line-height:24px;   }


</style>
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body" style="padding: 0px;">
            <div class="layui-tab layui-tab-card">
                <ul class="layui-tab-title">
                    <li class="layui-this" id="one">基本信息</li>
                    <li id="two">其他信息</li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <div class="layui-card-body layui-row layui-col-space10">
                            <div class="layui-col-md12">
                                <div class="layui-col-md4"
                                     style="padding: 0px;border: 1px solid #f2f2f2;padding: 10px;">
                                    <div class="layui-carousel" id="test10" lay-filter="test1">
                                        <div carousel-item="" id="images">
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-col-md8">
                                    <div class="layui-col-md12">
                                        <div class="layui-col-md6" style="padding-bottom:0px;">
                                            <div class="layui-form-item" style="margin-bottom: 0px;">
                                                <label class="layui-form-label" style="padding-right: 0px;">EPC标签：</label>
                                                <div class="layui-input-block" style="margin-left:80px;border-bottom: 1px solid #D3CCCC;word-wrap:break-word;word-break:break-all;overflow: hidden;">
                                                    <input tyep="text" id="ecpcode" class="layui-input"
                                                           disabled style="border: none;"/>


                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md6" style="padding-bottom:0px;">
                                            <div class="layui-btn-container" style="float: right">
                                                <a class="layui-btn" onclick="readCard()">读取标签</a><a
                                                    class="layui-btn layui-btn-normal" onclick="entry()">录入标签</a>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-col-md12 layui-col-space10" style="margin-top:5px;">
                                        <div class="layui-col-md6" id="doman1" style="padding-bottom:0px;">
                                        </div>
                                        <div class="layui-col-md6" id="doman2" style="padding-bottom:0px;">
                                        </div>
                                        <div class="layui-col-md12" id="doman3" style="padding-top:0px;">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-row layui-col-space8">
                                <div class="picMarquee-left">
                                    <%--                                    <div class="hd">--%>
                                    <%--                                        <a class="next"></a>--%>
                                    <%--                                        <a class="prev"></a>--%>
                                    <%--                                    </div>--%>
                                    <div class="bd">
                                        <ul class="picList" id="doman4image">
                                            <%--                                            <li>--%>
                                            <%--                                                <div class="pic"><img src="../images/pic1.jpg" /></div>--%>
                                            <%--                                            </li>--%>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab-item">
                        <div class="layui-card-body layui-row layui-col-space10">
                            <div class="layui-col-md12 layui-col-space10">
                                <div class="layui-col-md4" id="other1" style="padding-bottom:0px;">
                                </div>
                                <div class="layui-col-md4" id="other2" style="padding-bottom:0px;">
                                </div>
                                <div class="layui-col-md4" id="other3" style="padding-bottom:0px;">
                                </div>
                                <div class="layui-col-md12" id="other4" style="padding-top:0px;">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="<%=request.getContextPath()%>/huazhi/lib/layui-v2.5.5/layui.all.js"></script>
<script src="<%=request.getContextPath()%>/huazhi/js/lay-config.js?v=1.0.4" charset="utf-8"></script>
<script src="<%=request.getContextPath()%>/huazhi/lib/jquery-3.4.1/jquery-3.4.1.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/huazhi/lib/superSlide2.1/jquery1.42.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/huazhi/lib/superSlide2.1/jquery.SuperSlide.2.1.3.js"></script>

<script>
    function child(id) {
        layui.use(['table', 'form', 'layer', 'carousel'], function () {
            var $ = layui.jquery,
                table = layui.table,
                form = layui.form,
                layer = layui.layer,
                carousel = layui.carousel;

            //图片
            $.ajax({
                type: "post",
                url: "<%=request.getContextPath()%>/rest/rfid/getOne",
                data: "id=" + id,
                dataType: "json",
                async: false,
                success: function (data) {
                    for (var i = 0; i < data.data[0].imageList.length; i++) {
                        var images = '<div><img src="' + data.data[0].imageList[i].src + '" style="width:100%;height:100%;"/></div>';
                        $("#images").append(images)
                        // var imageli = '<div class="layui-col-md1 layui-col-sm4"><img  src="' + data.data[0].imageList[i].src + '"  style="width:100%;height:100%;"/></div>'
                        // $("#doman4image").append(imageli)
                        var iamgeLi='<li><div class="pic"><img src="' + data.data[0].imageList[i].src + '" /></div></li>';
                        $("#doman4image").append(iamgeLi)
                    }
                }
            });

            jQuery(".picMarquee-left").slide({mainCell:".bd ul",autoPlay:true,effect:"leftMarquee",vis:10,interTime:50,trigger:"click"});

            //常规轮播
            carousel.render({
                elem: '#test10'
                , width: '100%'
                , height: '475px'
                , arrow: 'none'
                , indicator: 'inside'
                , anim: 'fade'
                , autoplay: 'true'
                , interval: '5000'
            });

            $.ajax({
                type: "post",
                url: "<%=request.getContextPath()%>/rest/rfid/getMongoSearchStructure",
                dataType: "json",
                async: false,
                success: function (data) {
                    $.each(data, function (key, value) {
                        if (key == "1") {
                            for (var i = 0; i < value.length; i++) {
                                if ("datetime" == value[i].type || "textarea" == value[i].type) {

                                } else {
                                    if (value[i].state == "1") {
                                        if (i % 2 == 0) {
                                            var inputs = '<div class="layui-form-item" style="margin-bottom: 0px;">' +
                                                '<div class="layui-col-lg12">' +
                                                ' <label class="layui-form-label" style="padding-right: 0px;">' + value[i].displayName + '：</label>' +
                                                ' <div class="layui-input-block" style="margin-left:80px;border-bottom: 1px solid #D3CCCC;word-wrap:break-word;word-break:break-all;overflow: hidden;" >' +
                                                '<div   id="' + value[i].name + '" class="divhtml">' +
                                                // '<input type="text"  id="' + value[i].name + '"   autocomplete="off" class="layui-input"/>'
                                                '</div>' +
                                                '</div>' +
                                                '</div>' +
                                                '</div>'
                                            $("#doman1").append(inputs)
                                        } else {
                                            var inputs = '<div class="layui-form-item" style="margin-bottom: 0px;">' +
                                                '<div class="layui-col-lg12">' +
                                                ' <label class="layui-form-label" style="padding-right: 0px;">' + value[i].displayName + '：</label>' +
                                                ' <div class="layui-input-block" style="margin-left:80px;border-bottom: 1px solid #D3CCCC;word-wrap:break-word;word-break:break-all;overflow: hidden;">' +
                                                '<div   id="' + value[i].name + '" class="divhtml">' +
                                                '</div>' +
                                                '</div>' +
                                                '</div>' +
                                                '</div>'
                                            $("#doman2").append(inputs)
                                        }
                                        var key = value[i].name
                                        $.ajax({
                                            type: "post",
                                            url: "<%=request.getContextPath()%>/rest/rfid/getOneValueString",
                                            dataType: "json",
                                            data: "key=" + key + "&id=" + id,
                                            async: false,
                                            success: function (datas) {
                                                $("#" + key).html(datas);
                                            }
                                        })
                                    }
                                }
                                if ("datetime" == value[i].type) {
                                    if (value[i].state == "1") {
                                        if (i % 2 == 0) {
                                            var inputs = '<div class="layui-form-item" style="margin-bottom: 0px;">' +
                                                '<div class="layui-col-lg12">' +
                                                ' <label class="layui-form-label"  style="padding-right: 0px;">' + value[i].displayName + '：</label>' +
                                                ' <div class="layui-input-block" style="margin-left:80px;border-bottom: 1px solid #D3CCCC;word-wrap:break-word;word-break:break-all;overflow: hidden;">' +
                                                '<div   id="' + value[i].name + '" class="divhtml">' +
                                                '</div>' +
                                                '</div>' +
                                                '</div>' +
                                                '</div>'
                                            $("#doman1").append(inputs)
                                        } else {
                                            var inputs = '<div class="layui-form-item" style="margin-bottom: 0px;">' +
                                                '<div class="layui-col-lg12">' +
                                                ' <label class="layui-form-label"  style="padding-right: 0px;">' + value[i].displayName + '：</label>' +
                                                ' <div class="layui-input-block" style="margin-left:80px;border-bottom: 1px solid #D3CCCC;word-wrap:break-word;word-break:break-all;overflow: hidden;">' +
                                                '<div   id="' + value[i].name + '" class="divhtml">' +
                                                '</div>' +
                                                '</div>' +
                                                '</div>'
                                            $("#doman2").append(inputs)
                                        }
                                        var key = value[i].name
                                        var dateformat = value[i].dateformat
                                        $.ajax({
                                            type: "post",
                                            url: "<%=request.getContextPath()%>/rest/rfid/getOneValueString",
                                            dataType: "json",
                                            data: "key=" + key + "&id=" + id,
                                            async: false,
                                            success: function (datass) {
                                                if (datass == null || datass == "" || datass == "0") {
                                                    $("#" + key).html("");
                                                } else {
                                                    var time = new Date(parseInt(datass));
                                                    if (dateformat == "0") {
                                                        var year = time.getFullYear();
                                                        var month = time.getMonth() + 1;
                                                        var date = time.getDate();
                                                        var now = year + '-' + p(month) + "-" + p(date);
                                                    } else if (dateformat == "1") {
                                                        var year = time.getFullYear();
                                                        var month = time.getMonth() + 1;
                                                        var date = time.getDate();
                                                        var now = year + '年' + p(month) + "月" + p(date)+"日";
                                                    } else {
                                                        var year = time.getFullYear();
                                                        var month = time.getMonth() + 1;
                                                        var date = time.getDate();
                                                        var HH=time.getHours(); //获取系统时，
                                                        var mm=time.getMinutes(); //分
                                                        var ss=time.getSeconds(); //秒
                                                        var now = year + '-' + p(month) + "-" + p(date)+" "+p(HH)+":"+p(mm)+":"+ss;
                                                    }
                                                    $("#" + key).html(now);
                                                }
                                            }
                                        })
                                    }
                                }
                                if ("textarea" == value[i].type) {
                                    if (value[i].state == "1") {
                                        var textarea = '<div class="layui-form-item" style="margin-bottom: 0px;">' +
                                            '<div class="layui-col-lg12">' +
                                            ' <label class="layui-form-label" style="padding-right: 0px;">' + value[i].displayName + '：</label>' +
                                            ' <div class="layui-input-block" style="margin-left:80px;border-bottom: 1px solid #D3CCCC;word-wrap:break-word;word-break:break-all;overflow: hidden;">' +
                                            '<div    id="' + value[i].name + '" class="divhtml" ></div>' +
                                            '</div>' +
                                            '</div>' +
                                            '</div>' +
                                            '</div>'
                                        $("#doman3").append(textarea)
                                        var key = value[i].name
                                        $.ajax({
                                            type: "post",
                                            url: "<%=request.getContextPath()%>/rest/rfid/getOneValueString",
                                            dataType: "json",
                                            data: "key=" + key + "&id=" + id,
                                            async: false,
                                            success: function (datas) {
                                                $("#" + key).html(datas);
                                            }
                                        })
                                    }
                                }
                            }
                        } else {
                            for (var i = 0; i < value.length; i++) {
                                if ("datetime" == value[i].type || "textarea" == value[i].type || "image" == value[i].type) {

                                } else {
                                    if (value[i].state == "1") {
                                        if (i % 3 == 0) {
                                            var inputs = '<div class="layui-form-item" style="margin-bottom: 0px;">' +
                                                '<div class="layui-col-lg12">' +
                                                ' <label class="layui-form-label" style="padding-right: 0px;">' + value[i].displayName + '：</label>' +
                                                ' <div class="layui-input-block" style="margin-left:80px;border-bottom: 1px solid #D3CCCC;word-wrap:break-word;word-break:break-all;overflow: hidden;" >' +
                                                '<div   id="' + value[i].name + '" class="divhtml">' +
                                                '</div>' +
                                                '</div>' +
                                                '</div>' +
                                                '</div>'
                                            $("#other1").append(inputs)
                                        } else if (i % 3 == 1) {
                                            var inputs = '<div class="layui-form-item" style="margin-bottom: 0px;">' +
                                                '<div class="layui-col-lg12">' +
                                                ' <label class="layui-form-label" style="padding-right: 0px;">' + value[i].displayName + '：</label>' +
                                                ' <div class="layui-input-block" style="margin-left:80px;border-bottom: 1px solid #D3CCCC;word-wrap:break-word;word-break:break-all;overflow: hidden;">' +
                                                '<div   id="' + value[i].name + '" class="divhtml">' +
                                                '</div>' +
                                                '</div>' +
                                                '</div>' +
                                                '</div>'
                                            $("#other2").append(inputs)
                                        } else {
                                            var inputs = '<div class="layui-form-item" style="margin-bottom: 0px;">' +
                                                '<div class="layui-col-lg12">' +
                                                ' <label class="layui-form-label" style="padding-right: 0px;">' + value[i].displayName + '：</label>' +
                                                ' <div class="layui-input-block" style="margin-left:80px;border-bottom: 1px solid #D3CCCC;word-wrap:break-word;word-break:break-all;overflow: hidden;">' +
                                                '<div   id="' + value[i].name + '" class="divhtml">' +
                                                '</div>' +
                                                '</div>' +
                                                '</div>' +
                                                '</div>'
                                            $("#other3").append(inputs)
                                        }
                                        var key = value[i].name
                                        $.ajax({
                                            type: "post",
                                            url: "<%=request.getContextPath()%>/rest/rfid/getOneValueString",
                                            dataType: "json",
                                            data: "key=" + key + "&id=" + id,
                                            async: false,
                                            success: function (datas) {
                                                $("#" + key).html(datas);
                                            }
                                        })
                                    }
                                }
                                if ("datetime" == value[i].type) {
                                    if (value[i].state == "1") {
                                        if (i % 3 == 0) {
                                            var inputs = '<div class="layui-form-item" style="margin-bottom: 0px;">' +
                                                '<div class="layui-col-lg12">' +
                                                ' <label class="layui-form-label"  style="padding-right: 0px;">' + value[i].displayName + '：</label>' +
                                                ' <div class="layui-input-block" style="margin-left:80px;border-bottom: 1px solid #D3CCCC;word-wrap:break-word;word-break:break-all;overflow: hidden;">' +
                                                '<div   id="' + value[i].name + '" class="divhtml">' +
                                                '</div>' +
                                                '</div>' +
                                                '</div>' +
                                                '</div>'
                                            $("#other1").append(inputs)
                                        } else if (i % 3 == 1) {
                                            var inputs = '<div class="layui-form-item" style="margin-bottom: 0px;">' +
                                                '<div class="layui-col-lg12">' +
                                                ' <label class="layui-form-label"  style="padding-right: 0px;">' + value[i].displayName + '：</label>' +
                                                ' <div class="layui-input-block" style="margin-left:80px;border-bottom: 1px solid #D3CCCC;word-wrap:break-word;word-break:break-all;overflow: hidden;">' +
                                                '<div   id="' + value[i].name + '" class="divhtml">' +
                                                '</div>' +
                                                '</div>' +
                                                '</div>' +
                                                '</div>'
                                            $("#other2").append(inputs)
                                        } else {
                                            var inputs = '<div class="layui-form-item" style="margin-bottom: 0px;">' +
                                                '<div class="layui-col-lg12">' +
                                                ' <label class="layui-form-label"  style="padding-right: 0px;">' + value[i].displayName + '：</label>' +
                                                ' <div class="layui-input-block" style="margin-left:80px;border-bottom: 1px solid #D3CCCC;word-wrap:break-word;word-break:break-all;overflow: hidden;">' +
                                                '<div   id="' + value[i].name + '" class="divhtml">' +
                                                '</div>' +
                                                '</div>' +
                                                '</div>' +
                                                '</div>'
                                            $("#other3").append(inputs)
                                        }
                                        var key = value[i].name
                                        var dateformat = value[i].dateformat
                                        $.ajax({
                                            type: "post",
                                            url: "<%=request.getContextPath()%>/rest/rfid/getOneValueString",
                                            dataType: "json",
                                            data: "key=" + key + "&id=" + id,
                                            async: false,
                                            success: function (datass) {
                                                if (datass == null || datass == "" || datass == "0") {
                                                    $("#" + key).html("");
                                                } else {
                                                    var time = new Date(parseInt(datass));
                                                    if (dateformat == "0") {
                                                        var year = time.getFullYear();
                                                        var month = time.getMonth() + 1;
                                                        var date = time.getDate();
                                                        var now = year + '-' + p(month) + "-" + p(date);
                                                    } else if (dateformat == "1") {
                                                        var year = time.getFullYear();
                                                        var month = time.getMonth() + 1;
                                                        var date = time.getDate();
                                                        var now = year + '年' + p(month) + "月" + p(date)+"日";
                                                    } else {
                                                        var year = time.getFullYear();
                                                        var month = time.getMonth() + 1;
                                                        var date = time.getDate();
                                                        var HH=time.getHours(); //获取系统时，
                                                        var mm=time.getMinutes(); //分
                                                        var ss=time.getSeconds(); //秒
                                                        var now = year + '-' + p(month) + "-" + p(date)+" "+p(HH)+":"+p(mm)+":"+ss;
                                                    }
                                                    $("#" + key).html(now);
                                                }
                                            }
                                        })
                                    }
                                }
                                if ("textarea" == value[i].type) {
                                    if (value[i].state == "1") {
                                        var textarea = '<div class="layui-form-item" style="margin-bottom: 0px;">' +
                                            '<div class="layui-col-lg12">' +
                                            ' <label class="layui-form-label" style="padding-right: 0px;">' + value[i].displayName + '：</label>' +
                                            ' <div class="layui-input-block" style="margin-left:80px;border-bottom: 1px solid #D3CCCC;word-wrap:break-word;word-break:break-all;overflow: hidden;">' +
                                            '<div    id="' + value[i].name + '" class="divhtml" ></div>' +
                                            '</div>' +
                                            '</div>' +
                                            '</div>' +
                                            '</div>'
                                        $("#other4").append(textarea)
                                        var key = value[i].name
                                        $.ajax({
                                            type: "post",
                                            url: "<%=request.getContextPath()%>/rest/rfid/getOneValueString",
                                            dataType: "json",
                                            data: "key=" + key + "&id=" + id,
                                            async: false,
                                            success: function (datas) {
                                                $("#" + key).html(datas);
                                            }
                                        })
                                    }
                                }
                            }
                        }

                    });
                }
            });

            function p(s) {
                return s < 10 ? '0' + s : s;
            }
        });
    }

    function readCard(){
        var ip=$("#ip").val();
        var post=$("#post").val();
        $("#ecpcode").val("");
        $.ajax({
            type: "post",
            url: "<%=request.getContextPath()%>/rest/hairpin/readCard",
            dataType: "json",
            data:"ip="+ip+"&post="+post,
            async: false,
            success: function (data) {
                if(data==""){
                    layer.msg('未检测到标签', {icon: 5,shift: 0,time:2000});
                }else if(data=="1"){
                    layer.msg('标签已初始化', {icon: 4,shift: 0,time:2000});
                }else {
                    $("#ecpcode").val(data);
                }
            }
        });
    }

    function entry(){
        var ecpcode=$("#ecpcode").val();
        var id=$("#id").val();
        var ip=$("#ip").val();
        var post=$("#post").val();
        if(ecpcode==""){
            layer.msg('请读取标签', {icon: 3,shift: 0,time:2000});
        }else{
            $.ajax({
                type: "post",
                url:"<%=request.getContextPath()%>/rest/hairpin/entry",
                dataType: "json",
                data:"ecpcode="+ecpcode+"&id="+id+"&ip="+ip+"&post="+post,
                async: false,
                success: function (data) {
                    if(data=="0"){
                        layer.msg('标签已在库', {icon: 4,shift: 0,time:2000});
                        return false;
                    }else if(data=="1"){
                        layer.msg('发卡机网络故障', {icon: 0,shift: 0,time:2000});
                        return false;
                    }else if(data=="2"){
                        layer.msg('录入标签成功', {icon: 6,shift: 0,time:2000});
                        $("#successes").val("0")
                        return false;
                    }else if(data=="3"){
                        layer.msg('发卡机更新报错', {icon: 5,shift: 0,time:2000});
                        return false;
                    }else if(data=="4"){
                        layer.msg('录入标签失败', {icon: 2,shift: 0,time:2000});
                        return false;
                    }
                }
            });
        }

    }
</script>
</body>
</html>
